package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.AddressListItem;
import com.topscore.uke.mvp.BaseContractor;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClient;

import java.util.List;

/**
 * Created by 71468 on 2017/10/19.
 */

public interface GetMemberAddressListContractor extends BaseContractor {
    interface Presenter {
        void getAddressList(String phone);
    }

    interface Model {
        ApiService mService = NetClient.getInstance().net().create(ApiService.class);

        void getAddresses(Listener listener);
    }

    interface View extends BaseView {
        void onGetAddressListSuccess(List<AddressListItem> list);
    }

    interface Listener extends BaseHttpListener {
        void onGetListSuccess(BaseResponse<List<AddressListItem>> response);
    }
}
